package com.chuangxiang.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("sys_company")
public class Company {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    private Long userId;
    private String companyName;
    private String creditCode;
    private String legalPerson;
    private String contactPerson;
    private String contactPhone;
    private String address;
    private String businessLicense;
    private String bankAccount;
    private String bankName;
    
    private Integer status; // 0: 待审核 1: 已通过 2: 已拒绝
    
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    
    @TableLogic
    private Integer deleted;
}